<ui:composition template="/dynamic/layout/layout.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="content">
		<style>
p label {
	width: 120px;
	float: left;
	text-align: right;
	height: 30px;
}
</style>
		<div id="welcome">
			<p style="clear: both" />
		</div>
		<h3>Edytuj plik</h3>
		<h:form id="editFileForm" enctype="multipart/form-data">
			<table class="showTable">
				<tr>
					<td><label>Opis:</label></td>
					<td><p:inputTextarea id="description" required="true"
							styleClass="login_input_long" label="Opis"
							requiredMessage="Opis jest wymagany."
							value="#{fileMBean.actualFile.fileDescription}"
							validatorMessage="Opis musi być dłuższy niż 2 znaki!"
							autoResize="false">
							<f:ajax event="blur" render="descriptionM" />
							<f:validateLength minimum="3" />
						</p:inputTextarea> <h:message id="descriptionM" for="description" style="color:red"
							showDetail="true" showSummary="true" tooltip="true" /></td>
				</tr>
			</table>
			<br />
			<p:commandButton id="saveEditedFile"
				action="#{fileMBean.saveEditedFile}"
				value="Zapisz zmiany" ajax="false" />
		</h:form>


		<div id="main_content"></div>

	</ui:define>
</ui:composition>